[Unit]
Description=Goodrain Rainbond node
After=network.target

[Service]
Type=simple
User=root
LimitCORE=infinity
LimitNOFILE=102400
LimitNPROC=102400
PermissionsStartOnly=true
ExecStartPre=docker rm -f etcd-proxy
ExecStart={{ rbd_dir }}/scripts/start-etcd-proxy.sh
ExecStop=docker stop etcd-proxy
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target